<?php
class Apps_View_Helper_LabelArticleReference extends Apps_View_Helper_LabelBase {
    public $map = array(
        Model_DbTable_Article::REFERENCE_TYPE_ABOUT   	=> array('About', ''),
        Model_DbTable_Article::REFERENCE_TYPE_COUNTRY	=> array('Country', 'label-success'),
        Model_DbTable_Article::REFERENCE_TYPE_CRUISE	=> array('Cruise', 'label-warning'),
        Model_DbTable_Article::REFERENCE_TYPE_EVENT		=> array('Event', 'label-important'),
        Model_DbTable_Article::REFERENCE_TYPE_HOTEL		=> array('Hotel', 'label-info'),
        Model_DbTable_Article::REFERENCE_TYPE_NOMAL		=> array('Nomal', 'label-inverse'),
        Model_DbTable_Article::REFERENCE_TYPE_TOUR		=> array('Tour', 'label-danger'),
        Model_DbTable_Article::REFERENCE_TYPE_VISA	  	=> array('Visa', 'label-success'),
        Model_DbTable_Article::REFERENCE_BOOKING_GUIDE 	=> array('Booking guide', 'label-warning'),
        Model_DbTable_Article::REFERENCE_CAREER			=> array('Career', 'label-important'),
        Model_DbTable_Article::REFERENCE_FAQS			=> array('Faqs', 'label-info'),
        Model_DbTable_Article::REFERENCE_MAP			=> array('Map', 'label-inverse'),
        Model_DbTable_Article::REFERENCE_TRAVEL_GUIDE	=> array('Travel guide', 'label-success'),
        Model_DbTable_Article::REFERENCE_VCT_HISTORY	=> array('Vct history', 'label-warning'),
        Model_DbTable_Article::REFERENCE_WHY_VCT		=> array('Why Vct', 'label-important')
    );

    public function labelEnquiresReferenceType($type, $label=true) {
        return $this->map($type, $label);
    }
}